//
// Created by lau on 2019-10-17.
//

#ifndef VIDEOEFFECT_RENDER_H
#define VIDEOEFFECT_RENDER_H

#include <GLES2/gl2.h>
#include "program.h"

namespace VideoEffect {
    const GLfloat VECTICES[] = {
            1.0f, 1.0f, 1.0f, 1.0f,     // top right
            1.0f, -1.0f, 1.0f, 0.0f,     // bottom right
            -1.0f, -1.0f, 0.0f, 0.0f,     // bottom left
            -1.0f, 1.0f, 0.0f, 1.0f,     // top left
    };

    const GLushort INDEX[] = {
            0, 1, 3, // first triangle
            1, 2, 3  // second triangle
    };

    class Render {

    public:
        GLuint VAO;

        GLuint EBO;

    public:

        Render();

        ~Render();

        void draw(Program *program);
    };

}


#endif //VIDEOEFFECT_RENDER_H
